import { createStore } from 'vuex'

export default createStore({
    //数据
	state:{
		userInfo:uni.getStorageSync('userInfo')
	},
    //方法
	mutations:{
		handleSetUserInfo(state,value){
			state.userInfo=value;
			uni.setStorageSync('userInfo',value);
		}
	},
})